package com.whfc.ms.api.emp.service.impl;

import com.whfc.common.result.PageData;
import com.whfc.emp.dto.AppTrainingDTO;
import com.whfc.emp.param.AppTrainingAddParam;
import com.whfc.emp.param.AppTrainingEditParam;
import com.whfc.emp.param.AppTrainingListParam;
import com.whfc.emp.service.AppTrainingService;
import com.whfc.ms.api.emp.service.MsTrainingService;
import com.whfc.ms.api.emp.service.MsTrainingService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


/**
 * @ClasssName MsTrainServiceImpl
 * @Description 人员管理-培训
 * @Author hw
 * @Date 2020/11/26 17:24
 * @Version 1.0
 */
@Service
public class MsTrainingServiceImpl implements MsTrainingService {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @DubboReference(interfaceClass = AppTrainingService.class, version = "1.0.0", timeout = 5000)
    private AppTrainingService appTrainingService ;

    @Override
    public PageData<AppTrainingDTO> list(AppTrainingListParam request) {
        return appTrainingService.list(request);
    }

    @Override
    public void add(AppTrainingAddParam request) {
        appTrainingService.add(request);
    }

    @Override
    public void edit(AppTrainingEditParam request) {
        appTrainingService.edit(request);
    }

    @Override
    public void del(Integer id) {
        appTrainingService.del(id);
    }




}
